const mongoose = require("mongoose");
const InterviewSpeedSchema = new mongoose.Schema({
  //调研组号
  group: {
    type: String,
    require: [true, "you must tell us group"],
  },
  //省
  province: {
    type: String,
  },
  //市
  city: {
    type: String,
  },
  //==================问卷个数
  //市级访谈份数
  municipalInterview: {
    type: Number,
    default: 0,
  },
  //县级访谈份数
  countyInterview: {
    type: Number,
    default: 0,
  },
  //镇级访谈份数
  townshipInterview: {
    type: Number,
    default: 0,
  },
  //村级访谈份数
  villageInterview: {
    type: Number,
    default: 0,
  },
  //对接会讲话份数
  contactTalk: {
    type: Number,
    default: 0,
  },
  //安置点访谈份数
  resettlementInterview: {
    type: Number,
    default: 0,
  },
  //==================座谈访谈人次
  //市级领导
  municipalLeaders: {
    type: Number,
    default: 0,
  },
  //市级行业部门
  municipalDepartment: {
    type: Number,
    default: 0,
  },
  //县级领导
  countyLeaders: {
    type: Number,
    default: 0,
  },
  //县级行业部门
  countyDepartment: {
    type: Number,
    default: 0,
  },
  //乡镇干部
  townshipLeaders: {
    type: Number,
    default: 0,
  },
  //村干部
  villageCadres: {
    type: Number,
    default: 0,
  },
  //村医、小学校长
  villageDoctorsAndPrincipals: {
    type: Number,
    default: 0,
  },
  //第一书记或驻村工作队
  firstSecretary: {
    type: Number,
    default: 0,
  },
  //人大代表和政协委员
  NPCdeputies: {
    type: Number,
    default: 0,
  },
  //时间
  time: {
    type: String,
    require: [true, "you must tell us time"],
  },
});

const InterviewSpeed = mongoose.model("InterviewSpeed", InterviewSpeedSchema);
module.exports = InterviewSpeed;
